﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using System.Collections;

namespace Controller
{
   public class CoreBO
    {
        private CoreDAO _coreDAO;
        public CoreDAO coreDAO
        {
            get
            {
                if (_coreDAO == null)
                    _coreDAO = FactoryModelDAO.CurrentFA.CreateCoreDAOInstance();
                return _coreDAO;
            }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="dic"></param>
        public void BuildXMLCode(Dictionary<string, exFullInfoForBuildChild> dic,string path)
        {
            try
            {
                coreDAO.BuildXMLCode(dic,path);
            }
            catch(Exception ex)
            {
                throw ex;
            }
        }


        public Hashtable BuildCSharpCode(string path)
        {
            try
            {
               return coreDAO.BuildCSharpCode(path);
            }
            catch (Exception ex)
            {
                throw ex;
            }

        }

    }
}
